
/*Restyle Checkboxes*/

/*Different/Alternate Checkbox*/
//Fix For Devices using Input Instead
body:not(.alt-chkbx-off) {
    & .markdown-source-view.mod-cm6 .HyperMD-task-line[data-task],
    & .task-list-item.is-checked {
        &:is(
        [data-task="X"],
        [data-task=">"],
        [data-task="-"],
        [data-task=">"],
        [data-task="D"],
        [data-task="?"],
        [data-task="/"],
        [data-task="+"],
        [data-task="R"],
        [data-task="!"],
        [data-task="i"],
        [data-task="B"],
        [data-task="P"],
        [data-task="C"],
        [data-task="Q"],
        [data-task="N"],
        [data-task="b"],
        [data-task="I"],
        [data-task="p"],
        [data-task="L"],
        [data-task="E"],
        [data-task="A"],
        [data-task="r"],
        [data-task="c"],
        [data-task="o"],
        [data-task="d"],
        [data-task="T"],
        [data-task="t"],
        [data-task="O"],
        [data-task="W"],
        [data-task="@"],
        [data-task="F"],
        [data-task="f"],
        [data-task="~"],
        [data-task="H"],
        [data-task="&"],
        [data-task="s"]
            ) {
            & > .task-list-item-checkbox,
            & input:is([type=checkbox], [type=checkbox i]):checked,
            & input:is([type=checkbox], [type=checkbox i]):checked::after {

                background-image: url();
                position: relative;
                -webkit-appearance: none;
                appearance: none;
                filter: none;
                cursor: pointer;
                background-color: transparent !important;
                transform: unset; //Primary
                box-shadow: unset; //Gruvbox
                
                font: var(--its);
                font-family: var(--its);
                font-size: inherit;
                top: var(--chbx-pre-height);
                font-weight: 10;
                border: 0;
                vertical-align: 0px;
                text-align: center;
            }
         }
    }
}
.markdown-source-view.mod-cm6 .task-list-item-checkbox {
    vertical-align: -2px;
}
.cm-s-obsidian span.hmd-hidden-token.cm-formatting-task:not([data-task=" "]):not([data-task="x"])::before {
    border: none;
}

/*Checked Text*/
.markdown-source-view.mod-cm6 .HyperMD-task-line[data-task]:not([data-task=" "]),
:is(ul, ol) > li.task-list-item.is-checked {
    color: var(--lines, var(--text-faint));
    font-weight: bold;
}
:is(ul, ol) > li.task-list-item.is-checked p { font-weight: bold; }
:not(.chkbx-strike) .markdown-source-view.mod-cm6 .HyperMD-task-line[data-task]:not([data-task=" "]),
:not(.chkbx-strike) .task-list-item.is-checked {
    text-decoration: unset;
}

/* Checkbox Text Normal */
.check-text.check-text.check-text.check-text {
    & .markdown-source-view.mod-cm6 .HyperMD-task-line[data-task],
    & ul li:not([data-task="x"]).task-list-item.is-checked,
    & :is(ul, ol) > li.task-list-item.is-checked p {
        color: unset;
        font-weight: unset;
    }
}